<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>拓展运算符</title>
</head>
<body>
    <div></div>
    <script>
        //1、拓展运算符能将数组转换为逗号分隔的参数序列
        const Arr = [1,2,3]
        
        function test(){
            console.log(arguments)
        }
        test(Arr);//只有一个数组
        test(...Arr);//1,2,3
        //console.log(...Arr)
    </script>
</body>
</html>